><

Get Floating Box Position



The Get Floating Box Pos action reads the current position of a floating box moving across the page. You can process this information using, for example, an Idle action that moves a second floating box to the current position of that floating box. This creates the impression that the second object trails the first.

To set up a Get Floating Box Position action:

1 Prepare an animation with two floating boxes. Open the TimeLine Editor and record an animation path for the first floating box.

2 Make sure that the second floating box has only one keyframe, so that it is static and unmoving. (You move this floating box using the Idle action.)

3 Insert a Head Action in the head section of the page (see Setting up onload event actions).

4 Choose Get Floating Box Pos from the Getters submenu of the Action menu in the Action Inspector (see Using Adobe GoLive actions).

5 Set the trigger to OnCall in the Exec. menu and name the action, for example, GetLeaderPosition.

6 Select the floating box you want to monitor from the Floating Box pop-up menu.

7 Insert another Head Action in the head section of the page and leave its trigger set to OnLoad.

8 Choose Action > Specials > Idle in the Action Inspector.

9 Deselect "Exit Idle If Condition Returns True."

10 In the Condition tab choose Actions > Specials > Timeout enter an appropriate time interval in the Timeout text box.

11 In the True tab, choose Action > Multimedia > Move To as the action to execute when the condition is true. Then choose the floating box you want to move from the Floating Box pop-up menu.

12 Click the small icon next to the Floating Box option to specify how to supply the Web address. The red "C" icon () (default) lets you specify a fixed Web address. The green question mark icon () lets you choose an action. The blue ball icon () lets you select a variable that holds the Web address.

13 Click the small icon next to the Pos option twice so a green question mark () appears, and the pop-up menu lets you choose an action. Then Choose the Get Floating Box Pos action defined in previous steps, for example GetLeaderPosition. This action supplies the position the floating box will move to.

14 Click the False tab and repeat steps.

15 Preview the action in a 4.0 browser.


Using Actions > Using Adobe GoLive actions > Get Floating Box Position